﻿using System;
using System.Data;
using System.Data.SqlClient;
using LoverMeeting.Model.Entity;

namespace LoverMeeting.DataBase.DataMappers
{
    public class GenderMapper : IDataMapper<Gender>
    {
        public Gender GetData(IDataReader reader)
        {
            var entity = new Gender
                              {
                                  Id = int.Parse(reader["GenderId"].ToString()),
                                  Description = reader["GenderDescription"].ToString()
                              };
            return entity;
        }

        public void SetParameter(SqlCommand command, Gender entity)
        {
            throw new NotImplementedException();
        }

        public int GetRecordCount(IDataReader reader)
        {
            throw new NotImplementedException();
        }
    }
}
